<%-- 
    Document   : view-stock-linegraph
    Created on : Mar 24, 2011, 6:59:53 PM
    Author     : submonkey
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <jsp:include page="includes/script.html"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Steel & Scrap - Incoming & Usage</title>
    </head>
    <body>
        <center>
            <form method="get">
                From : <input type="text" value=""${start} name="start" readonly>
                <img src="images/calendar.gif" onclick="displayDatePicker('start', false, 'ymd', '-');" />&nbsp;
                To : <input type="text" value=""${end} name="end" readonly>
                <img src="images/calendar.gif" onclick="displayDatePicker('end', false, 'ymd', '-');" />&nbsp;
                <input type="submit" name="submit" value="view">
            </form>
        </center>
        <br>
        <center>
            <a href="stock-linegraph.png"><img src="stock-linegraph.png" width="800" border="0"></a>
        </center>
        <br>
        <center>
            <table cellpadding="1" cellspacing="1" bgcolor="#010101" width="800" align="center">
               <tr bgcolor="#c2c3c4">
                    <td>Date</td>
                    <td>Plan Incoming</td>
                    <td>Incoming</td>
                    <td>Plan Usage</td>
                    <td>Usage</td>
                </tr>
                <c:set var="planincoming" value="0" />
                <c:set var="incoming" value="0" />
                <c:set var="planusage" value="0" />
                <c:set var="usagedata" value="0" />

                <c:forEach items="${data}" var="data">
                    <tr bgcolor="#f2f3f4">
                        <td>${data.date}</td>
                        <td><fmt:formatNumber type="number" value="${data.planIncoming}" pattern="#,##,##,##,###" /></td>
                        <td><fmt:formatNumber type="number" value="${data.incoming}" pattern="#,##,##,##,###" /></td>
                        <td><fmt:formatNumber type="number" value="${data.planUsage}" pattern="#,##,##,##,###" /></td>
                        <td><fmt:formatNumber type="number" value="${data.usageData}" pattern="#,##,##,##,###" /></td>
                    </tr>
                </c:forEach>
            </table>
        </center>
    </body>
</html>

